package com.project.jdbc.service;

import java.util.List;

import com.project.jdbc.dao.IBaseJdbcDao;

public abstract class BaseServiceImpl implements IBaseService {
	protected abstract IBaseJdbcDao getBaseDao();
	public Object save(Object entity) throws Exception {
		return getBaseDao().saveEntity(entity);
	}

	public List<Integer> save(List list) throws Exception {
		return getBaseDao().saveList(list);
	}

	public Integer update(Object entity) throws Exception {
		return getBaseDao().update(entity);
	}

	public List<Integer> update(List list) throws Exception {
		return getBaseDao().updateList(list);
	}
}
